#include "StdAfx.h"
#include "StartNode.h"


StartNode::StartNode(const char* szID )
	: Node( szID )
{
}
StartNode::StartNode(int value)
{
	output = new Output();
	output->SetValue(value);
}


StartNode::~StartNode(void)
{
	delete output;
}

void StartNode::notify()
{
	output->notifyObservers();
}

void StartNode::LinkOutputWith(Input* input)
{
	if(!input)
		return;
	this->output->AttachInput(input);
}


void StartNode::SetOutput(int value)
{
	this->output->SetValue(value);
}
bool StartNode::IsSet()
{
	return this->output->IsSet();
}	